import service from '../../utils/request'
export function adminLogin(payload = {}) {
    return service({
        url: '/admin/login',
        method: 'post',
        data: payload
    })
}
// 查询全部数据
export function findAllProduct(payload = {}) {
    return service({
        url: '/products/findAllProduct',
        method: 'get',
        params: payload
    })
}
// 新增
export function addProduct(payload = {}) {
    return service({
        url: '/products/addProduct',
        method: 'post',
        data: payload
    })
}
// 关注列表
export function findProductByAttention(payload = {}) {
    return service({
        url: '/products/findProductByAttention',
        method: 'get',
        params: payload
    })
}
// 删除
export function deleteProduct(payload = {}) {
    return service({
        url: '/products/deleteProduct',
        method: 'get',
        params: payload
    })
}
// 按照编码1查询数据
export function findAllProductByCode(payload = {}) {
    return service({
        url: '/products/findAllProductByCode',
        method: 'get',
        params: payload
    })
}

// 根据时间来筛选数据

export function findAllProductByTime(payload = {}) {
    return service({
        url: '/products/findAllProductByTime',
        method: 'get',
        params: payload
    })
}
